package day20171018;

/**
 * Created by Administrator on 2017-10-18.
 */
public class Person {
    //1. 属性：姓名，年龄，性别，身份证号,...
    String name;
    int age;
    int gender;

    //2. 行为: 吃饭，睡觉，...
    void eat(){

        System.out.println("开始吃饭！");
    }
    void sleep(){}

    //3. 构造函数
    Person(){

        System.out.println("这是人构造函数。");
    }
}
